import request from '@/utils/request'

// 查询政策宣传列表
export function listPolicy_propaganda(query) {
    return request({
        url: '/view/policy_propaganda/list',
        method: 'get',
        params: query
    })
}

// 查询政策宣传详细
export function getPolicy_propaganda(id) {
    return request({
        url: '/view/policy_propaganda/info',
        method: 'get',
        params: { id: id }
    })
}

// 新增政策宣传
export function addPolicy_propaganda(data) {
    return request({
        url: '/view/policy_propaganda',
        method: 'post',
        data: data
    })
}

// 修改政策宣传
export function updatePolicy_propaganda(data) {
    return request({
        url: '/view/policy_propaganda',
        method: 'put',
        data: data
    })
}

// 删除政策宣传
export function delPolicy_propaganda(id) {
    return request({
        url: '/view/policy_propaganda/' + id,
        method: 'delete'
    })
}

// 导出政策宣传
export function exportPolicy_propaganda(query) {
    return request({
        url: '/view/policy_propaganda/export',
        method: 'get',
        params: query
    })
}